package com.itheima.d1_polymorphism;

public class Demo01 {
    public static void main(String[] args) {
        // 目标：认识多态

        Student s1 = new Student();
        Teacher t1 = new Teacher();

        //对象多态

        People  p1 = new Student();
       People p2 = new Teacher();
       Object o1 = new Student();
        //方法多态

        p1.run();
        p2.run();
    }
}
